package com.general.framework.mapper;

import com.general.framework.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuMapper {
    List<Menu> getMenuByRoleId(@Param("roleId") Long roleId);

    List<Menu> findAll();

    void insert(Menu menu);

    void update(Menu menu);

    void deleteById(Long id);

    List<String> getPermissionsByUserId(Long id);
}